import request from '@/utils/request'

// 获取订单列表
export const getOrderListAPI = () => request.get('/api/order')

// 添加订单
export const postOrderAPI = (data: any) => request.post('/api/order', data)

// 支付订单
export const putOrderAPI = (id: number) => request.put(`/api/order/${id}`)

// 删除订单
export const deleteOrderAPI = (id: number) => request.delete('/api/order', { data: { id } })
